import request from '@/utils/request'

export function fetchDictList(typeCode) {
  return request({
    url: '/admin/dict/list',
    method: 'get',
    params: {
      typeCode: typeCode
    }
  })
}

export function fetchList(query) {
  return request({
    url: '/admin/dict/getPagInfo',
    method: 'get',
    params: query
  })
}

export function add(data) {
  return request({
    url: '/admin/dict/save',
    method: 'post',
    data
  })
}
